package com.atguigu.spzx.cart.client.fallback;

import com.atguigu.spzx.cart.client.CartClient;
import com.atguigu.spzx.model.entity.h5.CartInfo;
import com.atguigu.spzx.model.vo.common.Result;
import com.atguigu.spzx.model.vo.common.ResultCodeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class CartClientFallback implements CartClient {
    @Override
    public Result<List<CartInfo>> getAllCheckedCartInfo() {
        log.error("查询选中的购物项列表失败");
        return Result.build( null,ResultCodeEnum.UNKNOW_ERROR);
    }

    @Override
    public Result deleteCheckedCartInfo() {
        log.error("删除选中的购物项列表失败");
        return Result.build( null,ResultCodeEnum.UNKNOW_ERROR);
    }
}